package com.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.CheckBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * @author lyl
 * description:
 */
@Mapper
public interface ICheckDao extends BaseMapper<CheckBean> {

    /**
     * 添加新的出库订单信息
     *
     * @param checkBean
     * @return
     */
    int addNewCheck(@Param("checkBean") CheckBean checkBean);

    /**
     * 根据id查找旗下出库信息
     *
     * @param checkId
     * @return
     */
    CheckBean findCheckById(@Param("checkId") int checkId);

    /**
     * @param clientName
     * @param startDate
     * @param endDate
     * @return
     */
    List<CheckBean> findCheckByPage(@Param("clientName") String clientName, @Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);
}
